package com.ruoyi.common.enums;



/**
 * @program: ChainUp_Monitor_Rear
 * @description:
 * @author: Saumell
 * @create: 2024-08-12 14:51
 **/

public enum KlineTypeEnum {

    // 兼容 TooBit /quote/v1/klines 的 interval（1m/5m/15m/30m/1h/1d/1w/1M）
    ONE_MINUTES("1m",60000L),
    FIVE_MINUTES("5m",300000L),
    FIFTEEN_MINUTES("15m",900000L),
    THIRTY_MINUTES("30m",1800000L),
    SIXTY_MINUTES("1h",3600000L),
    ONE_DAY("1d",86400000L),
    ONE_WEEK("1w",604800000L),
    ONE_MONTH("1M",2592000000L),
    ;
    
    private String type;
    private Long timestamp;
    
    KlineTypeEnum(String type, Long timestamp) {
        this.type = type;
        this.timestamp = timestamp;
    }
    
    public String getType() {
        return type;
    }
    
    public Long getTimestamp() {
        return timestamp;
    }


}
